﻿@{ var sponsors = AfrikDotnetWebSite.Helpers.SponsorHelper.GetSponsors(); }
@if (sponsors != null && sponsors.Count() > 0)
{
    <div class="sponsors box">
        <h2>Sponsors</h2>
        <ul>
            @foreach (var sponsor in sponsors)
            {
                <li>
                    <a href="@sponsor.Link" target="_blank">
                        @if (!sponsor.IsTextOnly)
                        { 
                            <img alt="@sponsor.Text" src="~/static/img/sponsors/@sponsor.Image" />
                        }
                        else
                        { 
                            <text>@sponsor.Text</text>
                        }
                    </a>
                </li>
            }
        </ul>
    </div>
}    
